package yancy.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import yancy.modules.sys.entity.Pair;
import yancy.modules.sys.entity.SysBorrowBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface SysBorrowBookDao extends BaseMapper<SysBorrowBook> {
    List<SysBorrowBook> query(Page page, @Param("params") Map<String, Object> params);

    List query2(Page page, @Param("params") Map<String, Object> params);

    List<Pair> queryCountByTime(@Param("startTime") String startTime,
                                @Param("endTime") String endTime);
}
